package com.hzit.manager.controller;


import com.hzit.manager.entity.Brand;
import com.hzit.manager.service.IBrandService;
import com.hzit.manager.util.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author wf
 * @since 2024-10-12
 */
@RestController
@RequestMapping("/brand")
public class BrandController {

	@Autowired
	private IBrandService brandService;

	//1. 列表品牌
	@GetMapping("list")
	public R<List<Brand>> list(){
		return R.ok(brandService.list());
	}
}
